#include "log.h"
#include <iostream>

int main()
{
    std::cout << "Hello World!" << std::endl;

    auto logger = learnco::LoggerMgr::GetInstance()->getLogger("root");
    auto logger2 = learnco::LoggerMgr::GetInstance()->getLogger("test");
    learnco::FileLogAppender::ptr file_ptr(new learnco::FileLogAppender("./log.txt"));
    logger->addAppender(file_ptr);
    logger2->addAppender(file_ptr);

    LEARNCO_LOG_DEBUG(logger) << "I love you" ;
    LEARNCO_LOG_DEBUG(logger2) << "I love you too" ;

    return 0;
}